<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<html>
	<head>
		<title></title>
	</head>
	<body style="">
		<%@ include file="/WEB-INF/views/shared/scripts/jquery.jsp"%>
		<%@ include file="/WEB-INF/views/shared/scripts/jqweui.jsp"%>
		<script type="text/javascript">
		function startPay(res,payCallback){
			if($.isNull(res)){
				$.alert("支付信息不能为空");
				return;
			}
			if($.isNull(payCallback)){
				$.alert("回调信息不能为空");
				return;
			}

			var config={
			           "appId":res.appId,     //公众号名称，由商户传入     
			           "timeStamp":""+res.timeStamp,         //时间戳，自1970年以来的秒数     
			           "nonceStr":res.nonceStr, //随机串     
			           "package":res.package,     
			           "signType":res.signType,         //微信签名方式：     
			           "paySign":res.paySign //微信签名 
			       };
			
			WeixinJSBridge.invoke('getBrandWCPayRequest', config,payCallback); 
		}
		</script>
	</body>
</html>